<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
index
${msg}
<!--直接写名称写${name}}-->

<div th:text="${name}">
</div>

</body>
</html>